

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$config['site_name']}</title>
<meta name="keywords" content="{$config['keywords']}" />
<meta name="description" content="{$config['description']}"/>
    <link href="__TMPL__skin/css/fafa.css" rel="stylesheet" type="text/css" />
    <link href="__TMPL__skin/css/validator.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript"  language = "javascript" src="__TMPL__skin/js/tools.js"></script>
	<script type="text/javascript"  language = "javascript" src="__TMPL__skin/js/jquery.js"></script> 
    <script src="__TMPL__skin/js/formvalidator.js" type="text/javascript"></script>
    <script src="__TMPL__skin/js/formvalidatorregex.js" type="text/javascript"></script>
	<script type="text/javascript"  language = "javascript" src="__TMPL__skin/js/jquery.cookie.js"></script>
	<meta name="viewport" content="width=device-width, width=device-width, initial-scale=1,user-scalable=0">
	<!--[if lt IE 9]>
    <script src="__TMPL__skin/js/css3-mediaqueries.js"></script>
	  <script src="__TMPL__skin/js/html5.js"></script>
<![endif]-->

<!-- yeczj.com Baidu tongji analytics -->

</head>
<body>

   <include file="Index:header" />
    <form method="post" action="" id="form1"  enctype="multipart/form-data">





            <div class="container">
                <div class="content">
                    <div class="mq"></div>
                    <div class="subheader">
                        <h1>免费发布信息,</h1>
                    </div>

                    <div style="background-color: #f5fff1; border: 1px solid #d0dbb8; padding: 10px; margin: 10px 10px 20px 10px; font-size: 14px; line-height: 24px;">
                        <p><span class="fs">·</span>游客一天可发布<span class="fo fb">0</span>条信息,注册会员一天可发布<span class="fo fb">10</span>条信息,vip一天可发布<span class="fo fb">100</span>条信息,超出限制发布一条需<span class="fo fb">5</span>金币</p>
                        <p><span class="fs">·</span>请不要发布非法或者重复信息,内容请不要包含特殊符号,<b>发布相同标题或相同内容会被删除账户,请珍惜您的账户</b></p>
                        <p><span class="fs">·</span>投放广告联系微信：YCZJ666 电话：15555520853</p>




                    </div>


                    <div class="fafapostpage">





                        <table border="0" cellpadding="0" cellspacing="0" width="100%" class="fafapost">

                            <tr>
                                <th style="width: 100px;">发布区域：</th>
                                <td class="inputselect">
                                    <select id="City001" name="City001" style="width: 100px">
                                       <volist name="province" id="v">
                                        <if condition="$v['id'] eq $pid ">
                                            <option value="{$v['id']}" selected="selected">{$v['province']}</option>
                                        <else />
                                       <option value="{$v['id']}">{$v['province']}</option>
                                       </if>
                                       </volist>
                                    
                                    </select>
                                    <select id="cityid" name="cityid"  style="width: 100px">
                                         <volist name="citylist" id="v">
                                           <if condition="$v['id'] eq $cityid">
                                            <option value="{$v['id']}" selected="selected">{$v['city']}</option>
                                           <else />
                                            <option value="{$v['id']}">{$v['city']}</option>
                                           </if>
                                      
                                       </volist>
                                    </select>
                                  
                                </td>
                            </tr>
                             <tr><th>信息类别：</th><td class='f14'>{$catename['name']}　<a href='/publish/'  class=f12>重新选择类别>></a></td></tr>
                            <tr>
                                <th>标　　题：</th>
                                <td>
                                    <div class="fl">
                                        <input name="titles" type="text" id="titles" class="input" style="width:450px;" /></div>
                                    <span id="titlesTip" class="vt27"></span></td>
                            </tr>
                            <tr>
                                <th>标　　签：</th>
                                <td>
                                    <div class="fl">
                                        <input name="keywords" type="text" maxlength="25" id="keywords" class="input" style="width:280px;" /></div>
                                    <span id="keywordsTip" class="vt27"></span></td>
                            </tr>
                            <tr>
                                <th valign="top">内　　容：</th>
                                <td>
                                    <div class="fl">
                                        <textarea name="neirong" rows="2" cols="20" id="neirong" class="input" style="height:200px;width:504px;">
</textarea></div>
                                    <span id="neirongTip" class="vt27"></span></td>
                            </tr>
                            <tr>
                                <th>图片上传：</th>
                                <td>
                                    <input type="file" name="FileUpload1" id="FileUpload1" class="input" /></td>
                            </tr>
                            <tr>
                                <th>企业名称：</th>
                                <td>
                                    <input name="shopname" type="text" value="{$company['name']}" maxlength="120" id="shopname" class="input" /></td>
                            </tr>
                            <tr>
                                <th>联&nbsp;系&nbsp;人：</th>
                                <td>
                                    <div class="fl">
                                        <input name="contact" type="text" value="{$company['contact']}" id="contact" class="input" /></div>
                                    <span id="contactTip" class="vt27"></span></td>
                            </tr>
                            <tr>
                                <th>联系电话：</th>
                                <td>
                                    <div class="fl">
                                        <input name="phone" type="text" value="{$company['phone']}" id="phone" class="input" /></div>
                                    <span id="phoneTip" class="vt27"></span></td>
                            </tr>
                            <tr>
                                <th>联系邮箱：</th>
                                <td>
                                    <div class="fl">
                                        <input name="email" type="text" value="{$company['email']}" id="email" class="input" /></div>
                                        <span id="emailTip" class="vt27"></span>
                                    </td>
                            </tr>

                            <if condition="$uinfo['vip'] eq 1 ">
                                                        <tr>
                                <td colspan="2">

                                    <table border="0" cellpadding="0" cellspacing="0" width="700" style="font-size: 14px; background-color: #FDFDE1; border: 1px solid #CCCCCC;">
                                        <tr>
                                            <td align="right" width="104" style="padding-right: 5px;">联系QQ：</td>
                                            <td><input name="qq" type="text" class="input" id="qq"  />&nbsp;VIP专享</td>
                                        </tr>
                                        <tr>
                                            <td align="right" style="padding-right: 5px;">商务通：</td>
                                            <td><input name="swt" type="text" class="input" id="swt" style="width: 400px;"  />&nbsp;VIP专享</td>
                                        </tr>
                                    </table>

                                </td>
                            </tr>
                            <else />
                                                        <tr>
                                <td colspan="2">

                                    <table border="0" cellpadding="0" cellspacing="0" width="700" style="font-size: 14px; background-color: #FDFDE1; border: 1px solid #CCCCCC;">
                                        <tr>
                                            <td align="right" width="104" style="padding-right: 5px;">联系QQ：</td>
                                            <td><input name="qq" type="text" class="input" id="qq" onclick="visit('/index.php?m=User&a=company');" readonly="readonly" />&nbsp;VIP专享</td>
                                        </tr>
                                        <tr>
                                            <td align="right" style="padding-right: 5px;">商务通：</td>
                                            <td><input name="swt" type="text" class="input" id="swt" style="width: 400px;" onclick="visit('/index.php?m=User&a=company');" readonly="readonly" />&nbsp;VIP专享</td>
                                        </tr>
                                    </table>

                                </td>
                            </tr>
                            </if>



                            <tr>
                                <th>删除密码：</th>
                                <td>
                                    <div class="fl">
                                        <input name="delpassword" type="text" id="delpassword" class="input" /></div>
                                </td>
                            </tr>
                             
                            <tr>
                                <th>验证码：</th>
                                <td>
                                    <div class="fl">
                                        <input name="verify" type="text" id="verify" class="input" style="width:100px;" /></div>
                                    <img src="/Admin.php?m=Public&a=verify" id="v" alt="验证码,看不清楚?请点击刷新验证码" style="cursor: pointer; float: left; margin: 2px 3px 0px 3px;"  />
                                    <span id="verifyTip"></span>
                                </td>
                            </tr>
                             

                          

                              

                            <tr>
                                <th></th>
                                <td>
                                <input  type="hidden" name="cid" value="{$cid}" />
                                <input type="hidden" name="company_id" value="{$company['id']}" />
                                    <input type="submit" name="submits" value="立即发布" id="submits" class="btnf" /></td>
                            </tr>
                        </table>


                    </div>
                </div>
            </div>





            <script type="text/javascript">
     
				 
				 function visit(href) {
					var target = "_blank";
					if (navigator.appName.toLowerCase().search("microsoft") != -1) {
						var bodyElem = document.getElementsByTagName("body")[0];
						var elem = document.createElement("a");
						elem.style.display = "none";
						elem.href = href;
						elem.target = target;
						bodyElem.appendChild(elem);
						elem.click();
						bodyElem.removeChild(elem);
					} else {
						if (target == undefined || target == "" || target == "_self") {
							window.location.href = href;
						} else {
							window.open(href);
						}
					}
				} 
               
			 $("#v").click(function(){

			

			 var url ="/Admin.php?m=Public&a=verify&t="+ Math.random();

			 $(this).attr('src',url);

			});

                $(document).ready(function () {
                    //
                    // return;
                    $.formValidator.initConfig({ formid: "form1", onerror: function (msg) { checkSubmitFlg = false; }, onsuccess: function () { } });



              $("#keywords").formValidator({ onshow: "请输入标签2-25字内 多个用标签请用 , 号隔开", onfocus: "请输入标签2-25字内 多个用标签请用 , 号隔开", oncorrect: "输入正确" }).inputValidator({ min: 2, max: 50, onerror: "请输入2-50字之间标签 多个用 , 号隔开" });

              //$("#selectedClass").formValidator({ onshow: "必须选择一个类别", onfocus:alert("必须选择一个类别2"), oncorrect: "选择正确" }).inputValidator({ min: 1, max: 50, onerror: "必须选择一个类别" }).defaultPassed();
              //$("#selectedClass").formValidator({ onshow: "请选择发布类别", onfocus: "请选择发布类别", oncorrect: "选择正确" }).inputValidator({ min: 1, max: 50, onerror: "请选择信息的发布类别" }).defaultPassed();
              //$("#titles").formValidator({ onshow: "请输入标题", onfocus: "请输入标题", oncorrect: "输入正确" }).inputValidator({ min: 20, max: 200, onerror: "请输入20-200字之间" });
              $("#neirong").formValidator({ onshow: "请输入内容", onfocus: "请输入内容", oncorrect: "输入正确" }).inputValidator({ min: 20, max: 10000, onerror: "请输入20-10000字" });
              $("#contact").formValidator({ onshow: "请输入联系人", onfocus: "请输入联系人", oncorrect: "输入正确" }).inputValidator({ min: 2, max: 50, onerror: "请输入2-50字之间" }).defaultPassed();
              $("#phone").formValidator({ onshow: "请输入联系电话", onfocus: "请输入联系电话", oncorrect: "输入正确" }).inputValidator({ min: 2, max: 50, onerror: "请输入2-50字之间" }).defaultPassed();
              $("#email").formValidator({ onshow: "请输入联系邮箱", onfocus: "请输入联系邮箱", oncorrect: "输入正确" }).inputValidator({ min: 2, max: 50, onerror: "请输入2-50字之间" }).defaultPassed();

              //document.getElementById('Button1').disabled=false;
          });




            </script>




            
            <include file="Index:footer"/>


        </div>
    </form>
</body>
</html>
